SmartFTP FTP Library
IFTPConnection::DownloadFileEx Method

Uploads the specified local file to the specified remote file.

IDL
HRESULT DownloadFileEx(
    [in] BSTR remoteFile, 
    [in] VARIANT localFile, 
    [in] ULONGLONG startPosition, 
    [in] ULONGLONG endPosition, 
    [in] ITransferProgressEvents* progress
);
Parameters

remoteFile
The name of the remote file.
localFile
The local file. This may be a path to a file (String/BSTR), an IStream or any object that supports IStream.
startPosition
The start position.
endPosition
The end position.

The client opens a data connection and uploads the file with the STOR command. In case the startPosition is greater than zero, the client sends a REST command and the file is being resumed from the position specified in the startPosition. If endPosition is greater than zero the client automatically aborts the transfer once the position is reached.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.